package com.thkj.service.impl;

import com.thkj.entity.TblCameraRele;
import com.thkj.service.TblMoniConfigService;
import com.thkj.framework.base.BaseService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TblMoniConfigServiceImpl extends BaseService implements TblMoniConfigService {

    @Override
    public void insertCameraRele(TblCameraRele cameraRele) {
        dao.insert("com.thkj.mapper.TblCameraRele.insert", cameraRele);
    }

    @Override
    public Integer updateTblCameraRele(TblCameraRele cameraRele) {
        return dao.update("com.thkj.mapper.TblCameraRele.update", cameraRele);
    }


    @Override
    public Integer delete(String id) {
        return dao.delete("com.thkj.mapper.TblCameraRele.delete", id);
    }

    @Override
    public TblCameraRele getById(String id) {
        return dao.queryForObject("com.thkj.mapper.TblCameraRele.getById", id, TblCameraRele.class);
    }

    @Override
    public List<TblCameraRele> getByIndexCode(String id) {
        return dao.queryForList("com.thkj.mapper.TblCameraRele.getByIndexCode", id, TblCameraRele.class);
    }

    @Override
    public TblCameraRele getByIndividualId(String individualId) {
        return dao.queryForObject("com.thkj.mapper.TblCameraRele.getByIndividualId", individualId, TblCameraRele.class);
    }


}